Is it possible to use DXL to generate a textual description of the modules and links in a DOORS database? It would be very nice to be able to use this capability to generate a file which could be used by the free and open source graph generating tool Graphviz (http://www.graphviz.org/) to generate maps of the links. |
Re: Generating GraphViz DOT Script in DXL For each module, for each outgoing link keep track of the tripple SourceMod-LinkMod-TargetMod, use the LinkMod to determine a "verb", and present: SourceMod verb TargetMod; e.g. SubSys1 "Satisfies" SystemSpec -Louie |
Re: Generating GraphViz DOT Script in DXL When I am bored I play with doors visualisation - amazing what you can do. I have a website that I have half finished - where you could download the tool, assuming I told people where it is!! I will attempt to finish my website in the next couple of weeks and make it available then. Putting the prototype of the visualiser on the web site defeated my energy levels especially using the right security settings. Here's a picture of the free tool assuming anyone's interested. Regards, Richard Attachments attachment_14846587_webPageImage.pdf |
Re: Generating GraphViz DOT Script in DXL As for that tool - I would be very interested in seeing the results. Thanks for sharing! |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Wed Jun 20 15:17:26 EDT 2012
The problem is, that iterating the links of a database can take hours to complete, depending on the size of the project you want to evaluate. Therefore I would not suggest you write a DXL script that will directly dump information to a graphvis file, because then you have to nail the layout right away. If you want to have another layout or experiment with graphvis you would need to reiterate the links. ... see attached file dumpLinksExample.dxl ...
... see attached file linkStatistics.dxl ...
ModuleA -> ModuleB ModuleB -> ModuleC ModuleD -> ModuleC
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Attachments attachment_14846651_linkDump.zip |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Wed Jun 20 14:58:45 EDT 2012 But lets face it - DOORS should have been supporting interactive graphical views of Project, Module, Link, Object and Attribute schemas 10 years ago. I wait to see what the "DOORS Next Generation" product might offer in this space - should I hold my breath? Paul Miller Melbourne, Australia |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Wed Jun 20 19:55:05 EDT 2012 Paul Miller Melbourne, Australia |
Re: Generating GraphViz DOT Script in DXL OurGuest - Thu Jun 21 06:42:37 EDT 2012 This has already been developped in the context of Requirements Management Framework addins ... Interactive usage of Graphviz allowing to display interactive tracability graphs in DOORS with operations based on graphic views (modules,objects,model) ... I developped also some less sophisticated scripts outside of RMF to vizualize graphs Luc Attachments attachment_14847086_rmf_explorer.JPG |
Re: Generating GraphViz DOT Script in DXL OurGuest - Thu Jun 21 06:42:37 EDT 2012 I can't wait that long though. |
Re: Generating GraphViz DOT Script in DXL Mathias Mamsch - Wed Jun 20 17:35:18 EDT 2012
The problem is, that iterating the links of a database can take hours to complete, depending on the size of the project you want to evaluate. Therefore I would not suggest you write a DXL script that will directly dump information to a graphvis file, because then you have to nail the layout right away. If you want to have another layout or experiment with graphvis you would need to reiterate the links. ... see attached file dumpLinksExample.dxl ...
... see attached file linkStatistics.dxl ...
ModuleA -> ModuleB ModuleB -> ModuleC ModuleD -> ModuleC
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Thu Jun 21 11:32:52 EDT 2012 |
Re: Generating GraphViz DOT Script in DXL -Louie |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Thu Jun 21 11:46:41 EDT 2012 But it is a licensed addon ... You can find some information here: http://www-01.ibm.com/support/docview.wss?uid=swg24032745 With some DXL work you may extract information from DOORS and generate a dot file for Graphviz. In any case you have to filter data if you want readable graphic views. I used that to generate PDF and also interactive HTML files, with the html and map Graphviz generation you may have a clickable display that can be used to open DOORS data. Attachments attachment_14847487_example.zip |
Re: Generating GraphViz DOT Script in DXL llandale - Thu Jun 21 12:57:44 EDT 2012 You can find attached a first attempt of a (simple) graph generator for GraphViz. The graph displays the linksets defined in the current folder/project and its children. Alain Attachments attachment_14848576_genLinksetGraph.dxl |
Re: Generating GraphViz DOT Script in DXL adevicq - Tue Jun 26 06:08:41 EDT 2012 Attachments attachment_14848583_genLinksetGraph.dxl |
Re: Generating GraphViz DOT Script in DXL adevicq - Tue Jun 26 06:31:15 EDT 2012 when running the getLinksetGraph.dxl what is the trick to view the results in a readable format; meaning enlarging the view. I tried to modifying the "size" with limited success. Thank you. -Jim |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Tue Jun 26 11:13:47 EDT 2012 alain |
Re: Generating GraphViz DOT Script in DXL http://www.chalford.net/Downloads.aspx |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Fri Jun 29 10:33:33 EDT 2012 I have executed you installer and I don't see anything new in PSPad (no new menu as shown on your site). FYI I am on W7... Is there anything I can do? Regards, Alain |
Re: Generating GraphViz DOT Script in DXL adevicq - Mon Jul 02 09:07:33 EDT 2012 The pspad addin, contains a stable pspad variant with the dxl addin which allows you to interpret the errors and return them to the log window and to pass the current file as an <#include> wrappered file to the clipboard. Whilst wrappering this all up I thought I'd play around with self extracting zip files and create an autohotkey generated script file for automatically installing the addin to an existing version of pspad. The tool also checks that you have DOORS on your machine and links to the relevant dxl help file in the install directory. such that you can use it within pspad. The tool does not install if you do not have doors on your machine, this may be a over the top. I'll have a look at the install again with a view to simplifying it rather than seeing what can and can't be done. I suspect it may be failing silently for some reason, possibly because your machine does not allow unsigned exes to run. If you have a specific error message then please let me know. You can send me a personal email through my website. The pspad addin can be built with a few files and some manual tweaking I may add a method to do this as an alternative on my website |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Wed Jul 04 12:16:39 EDT 2012 One question: How do you check that DOORS is installed on the machine? Remember that the registry keys are different on Windows 7. Maybe there is a possible issue here... FYI I have no message when I run the installer. Regards, Alain |
Re: Generating GraphViz DOT Script in DXL adevicq - Wed Jul 04 12:24:03 EDT 2012 I'll think of an alternative this weekend as although these are free tools I want them to work for at least 99% of people. I have tested on DOORS 9-2 and DOORS 9-3 on Xp and Windows 7. The pspad plugin is not returning the errors correctly on the windows 7 machine. The linksetviewer plugin installed everything, but sometimes created a shortcut to the temporary install area not where you chose to install the plugin. You will need to download the tools again |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Thu Jul 05 07:50:34 EDT 2012 I made the setup manually for the DXL "compiler" and DXL returns the errors as expected. The only thing I do not have is your "script" menu... Alain |
Re: Generating GraphViz DOT Script in DXL adevicq - Mon Jul 09 16:37:19 EDT 2012 If you use pspad for something else then you need to copy the dxl.vbs file to the \PSPad editor\Script\VBScript folder to get the script functionality. You should get the dxl menu as shown in the screenshot. Regards, Richard Attachments attachment_14853843_pspad.jpg |
Re: Generating GraphViz DOT Script in DXL adevicq - Tue Jun 26 06:31:15 EDT 2012 I tried the script, but first I had to comment out the bit asking if I have GraphViz installed, and the last line where it runs GraphViz, because I want to take the generated file and run it on a different machine. Where is the file saved? I ran the script (Tools > Edit DXL > Load > Run) from the root of the project, and it output what looks like all the folders in the project. The output didn't show anything that looked like GraphViz - is that correct? Then I searched for any .gv files on the machine, but there were none. I thought maybe the temp file would be deleted after the run, so I set the filename to always be DOORS_Graphviz.gv. But after running, I still couldn't find the output file. |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Fri Jun 29 10:33:33 EDT 2012 |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Mon Oct 01 13:17:33 EDT 2012 > Where is the file saved? sFileName = tempFileName ".gv"
which on my PC translates to something like C:\DOCUME~1\Albert\LOCALS~1\Temp\DP9.gv. sFileName = "C:\\Documents and Settings\\Albert\\Desktop\\DOORS_Graphviz.gv"
|
Re: Generating GraphViz DOT Script in DXL Peter_Albert - Tue Oct 02 06:00:34 EDT 2012 > Where is the file saved? sFileName = tempFileName ".gv"
which on my PC translates to something like C:\DOCUME~1\Albert\LOCALS~1\Temp\DP9.gv. sFileName = "C:\\Documents and Settings\\Albert\\Desktop\\DOORS_Graphviz.gv"
Thank you for your informative reply! I have DOORS running on a Windows Server 2008 machine, so the paths are different. I couldn't find a Temp folder anywhere. The reason we're running it like this is because it's the only way to allow people in different offices to access the system. The database won't work over a WAN, only over a LAN, so my colleagues in different offices have to log in via Remote Desktop Access. That's a different thread though... Anyway, I set the path to a specific location as you suggest, escaping the backslashes, and it works fine. It generates a nice GV file, which renders to a very complex digraph! It turns out that the DXL output window does not show all the content that goes into the saved file. The saved GV file contains all the correct syntax. However, I will need to try and make changes to the DXL. The resulting graph uses labels on the joining lines to represent which Link Module is used. Albert, in answer to your question, we have been very strict in using Link Modules to corral links in an organised way (I learned that on a training course). The way the DXL works now, the labels are repeated on every line, which gives rise to a very complex and repetitive graph. I agree it is best to analyse what Linksets are set up, rather than analyse the actual links. See the attached for a fake example of what is being shown now. The labels are repeated. I will reply to this post with another example - only one attachment possible on this forum, sadly. Attachments attachment_14893100_DXL_GraphViz_Example_1.png |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Tue Oct 02 12:33:15 EDT 2012 Attached is a another example, with Link Modules shown as boxes. This diagram contains the same information as the first example, but I think it shows the relationships a bit clearer. I also used the "subgraph cluster..." command to show the modules in folders. What would I need to change in the code posted by Alain to make it work like this? I think we're on the brink of something really good! I can post the GV file of DOT code for these examples if people are interested. Attachments attachment_14893107_DXL_GraphViz_Example_2.png |
Re: Generating GraphViz DOT Script in DXL SystemAdmin - Fri Jun 29 10:33:33 EDT 2012 Richard, I just downloaded your linkset viewer, but it refuses to install with my DOORS V9.4 although it says that it's looking for DOORS 9.2 or higher. Do you maybe have an updated version available? Thanks Karl |
Re: Generating GraphViz DOT Script in DXL kabr - Thu Apr 25 03:32:21 EDT 2013 Richard, I just downloaded your linkset viewer, but it refuses to install with my DOORS V9.4 although it says that it's looking for DOORS 9.2 or higher. Do you maybe have an updated version available? Thanks Karl I should remove the registry check and just give a warning (it won't work with pre version 9) It does try and check for 9.4 and 9.5, obviously something unexpected has happend with the registry settings maybe IBM use a differrent key or I have introduced a typo into the script. I do not have 9.4 and 9.5 to play with at the moment. You can probably trick the install by installing the wrappered msi direct, maing sure that the dxl references the encrypted inc files correctly and making sure that the dot.exe is in the path (this will be in the bin folder of graphviz). I will try and tweak this on the weekend, if I get 5 mins. Richard |
Re: Generating GraphViz DOT Script in DXL kabr - Thu Apr 25 03:32:21 EDT 2013 Richard, I just downloaded your linkset viewer, but it refuses to install with my DOORS V9.4 although it says that it's looking for DOORS 9.2 or higher. Do you maybe have an updated version available? Thanks Karl It is not a problem to create a grafik using those tools. I'm using the dxl-edtor in eclipse and doxygen (and some other tools) to create a documentation.
* @startuml{TheCancelledObject.png} And then you get the following picture:
Attachments TheCancelledObject.png |
Re: Generating GraphViz DOT Script in DXL Richard_Good - Thu Apr 25 08:33:48 EDT 2013 I should remove the registry check and just give a warning (it won't work with pre version 9) It does try and check for 9.4 and 9.5, obviously something unexpected has happend with the registry settings maybe IBM use a differrent key or I have introduced a typo into the script. I do not have 9.4 and 9.5 to play with at the moment. You can probably trick the install by installing the wrappered msi direct, maing sure that the dxl references the encrypted inc files correctly and making sure that the dot.exe is in the path (this will be in the bin folder of graphviz). I will try and tweak this on the weekend, if I get 5 mins. Richard Looks like I was having a bit of an issue with 64 bit operating systems not windows 7 - I need to know where the doors executable is to create the shortcut to the Linkset Viewer (I do this by looking in the registry), many users even some of those who float around here cannot create their own personal menus so it is desirable. Note I have no means of testing the update at the moment, but am about 80% certain it works. Download the tool again from http://www.chalford.net/Downloads.aspx#Linkset_Viewer to see if the issue is sorted. Please let me know if it's not and I'll have another go one weekend. Note that I have added an SVG option (clicking on the nodes will open the modules in DOORS), this option will work with all browsers except Internet Explorer (IE9 might work, earlier versions won't) Visualisations of links (between objects and modules) is one of DOORS major weak points, I had until I got distracted by other projects a nearly complete visualisation tool of this sort, no real interest a couple of years ago so I never pursued it. If anyone is interested I could maybe resuscitate it. Richard
|
Re: Generating GraphViz DOT Script in DXL Richard_Good - Sat Apr 27 09:51:53 EDT 2013 Looks like I was having a bit of an issue with 64 bit operating systems not windows 7 - I need to know where the doors executable is to create the shortcut to the Linkset Viewer (I do this by looking in the registry), many users even some of those who float around here cannot create their own personal menus so it is desirable. Note I have no means of testing the update at the moment, but am about 80% certain it works. Download the tool again from http://www.chalford.net/Downloads.aspx#Linkset_Viewer to see if the issue is sorted. Please let me know if it's not and I'll have another go one weekend. Note that I have added an SVG option (clicking on the nodes will open the modules in DOORS), this option will work with all browsers except Internet Explorer (IE9 might work, earlier versions won't) Visualisations of links (between objects and modules) is one of DOORS major weak points, I had until I got distracted by other projects a nearly complete visualisation tool of this sort, no real interest a couple of years ago so I never pursued it. If anyone is interested I could maybe resuscitate it. Richard
Same problem. Trying to run the installer I get: "This utility requires DOORS 9-2 or higher. DOORS 9-2 was not found on your system"
Karl |
Re: Generating GraphViz DOT Script in DXL kabr - Tue Apr 30 03:41:06 EDT 2013 Same problem. Trying to run the installer I get: "This utility requires DOORS 9-2 or higher. DOORS 9-2 was not found on your system"
Karl Hi Karl, The error message seems relevant to an older version of this tool, are you sure you downloaded the updated one successfully? I check the following keys for a doors installation HKEY_LOCAL_MACHINE\SOFTWARE\Telelogic\DOORS\ and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Telelogic\DOORS\ Please confirm you have a 9.4\ExecutablesDirectory registry key in one of the two areas. IBM do not write to the current version area of the registry, at least thats what I remember Probably best to send me a private message to richard@chalford.net Kind of surprised this didn't work, just tried it on a windows 7 machine and it worked, but bizarrely the HKEY_LOCAL_MACHINE\SOFTWARE\Telelogic\DOORS\ key not the Wow6432Node one is used by DOORS even though it was a 64 bit Windows 7 machine (don't have DOORS 9.3, 9.4 or 9.5 to test). Regards, Richard |
Re: Generating GraphViz DOT Script in DXL Hi (Full disclosure I work for IBM Rational) I had not looked at GraphWiz but I've been playing with the idea of getting the structure info out of DOORS and into Rational System Architect(SA) so i could visualise and report on the DOORS structure - this was for my own learning exercise. Attached is a bit of DXl franken-code which I built - its not very nice or robust and it can take hours to run - don't even other to run it on a machine with anything less then 6Gb ram . It produces a bunch of csv file which can then be sucked into SA using the provided usrprops. I'm not suggesting that this is an alternative to GraphWiz just an option - but thought I would post the code in case its of any use to someone
Attachments DOORS IA.zip |